package chp04;

public class Test1 {

    public static void main(String[] args) {
        int num = 5;

        int xx= 4;
        //有什么路可以走，在运行的过程中才能够确定下来
        if(num == 1){
            System.out.println("星期一");
        }else if(num == 2){
            System.out.println("星期二");
        }else if(num == 3){
            System.out.println("星期三");
        }else if(num == xx){
            System.out.println("星期四");
        }else if(num == 5){
            System.out.println("星期五");
        }else if(num == 6){
            System.out.println("星期六");
        }else if(num == 7){
            System.out.println("星期日");
        }else{
            System.out.println("输入有误");
        }
    }
}
